import { request } from "@/utils/axiosInstance.js";

export const getList = data => {
	return request({
		url: "/article/getAll",
		method: "POST",
		data,
	});
};

export const create = data => {
	return request({
		url: "/article/create",
		method: "POST",
		data,
	});
};

export const update = data => {
	return request({
		url: "/article/update",
		method: "POST",
		data,
	});
};

export const del = data => {
	return request({
		url: "/article/delete",
		method: "POST",
		data,
	});
};
